.img-viewer {
  .viewer-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
  }

  .viewer {
    img {
      display: none;
    }
  }

  .viewer-img-item {
    height: 100%;
    width: auto;
    max-width: 100%;
  }

}

.viewer-container {
  z-index: 2300 !important;

  // 重置图片预览的样式
  .viewer-button {
    height: 120px;
    width: 120px;
  }

  .viewer-button::before {
    bottom: 27px;
    left: 35px;
    position: absolute;
  }

  .viewer-close::before {
    background-position: -566px 0;
    content: 'Close';
  }

  .viewer-zoom-in::before,
  .viewer-zoom-out::before,
  .viewer-one-to-one::before,
  .viewer-reset::before,
  .viewer-prev::before,
  .viewer-play::before,
  .viewer-next::before,
  .viewer-rotate-left::before,
  .viewer-rotate-right::before,
  .viewer-flip-horizontal::before,
  .viewer-flip-vertical::before,
  .viewer-fullscreen::before,
  .viewer-fullscreen-exit::before,
  .viewer-close::before {
    background-size: 600px;
    height: 40px;
    width: 40px;
  }

  .viewer-toolbar>ul>.viewer-large,
  .viewer-toolbar>ul>li {
    height: 50px;
    width: 50px;
    margin: 10px;
  }

  .viewer-zoom-in::before {
    background-position: 1px 1px;
  }

  .viewer-zoom-out::before {
    background-position: -40px 0;
  }

  .viewer-one-to-one::before {
    background-position: -83px 2px;
  }

  .viewer-reset::before {
    background-position: -127px 2px;
  }

  .viewer-prev::before {
    background-position: -171px 1px;
  }

  .viewer-play::before {
    background-position: -214px 0;
  }

  .viewer-next::before {
    background-position: -253px 1px;
  }

  .viewer-rotate-left::before {
    background-position: -300px 2px;
  }

  .viewer-rotate-right::before {
    background-position: -339px 1px;
  }

  .viewer-flip-horizontal::before {
    background-position: -383px 2px;
  }

  .viewer-flip-vertical::before {
    background-position: -427px 1px;
  }

  .viewer-footer .viewer-title {
    font-size: 25px;
    line-height: 40px;
  }

  .viewer-list>li {
    width: 32px;
  }
}
